<?php 
  session_start();
  $reg=$_SESSION["correo_1_cliente"]; 
  require_once('conexion.php');
  $cn= Conectarse();
  $listado=  mysql_query("SELECT * from view_cliente_historial where cliente_documento_cliente= $reg->documento_cliente AND (estado_solic = 'Aprobada' or estado_solic = 'Pendiente') ",$cn);
?>
<script type="text/javascript" language="javascript" src="js/jslistadocancel.js"></script>
<script type="text/javascript" language="javascript" src="js/botonCancelar.js"></script>
<table cellpadding="0" cellspacing="0" border="0" class="display" id="listarcancel">
  <thead>
    <tr>
      <th>Id</th>
      <th>Fecha Solicitud</th>
      <th>Fecha de la clase</th>
      <th>Duración</th>
      <th>Alumnos</th>
      <th>Materia</th>
      <th>Tutor</th>
      <th>Estado</th>
      <th>Pago</th>
      <th>Valor</th>
      <th></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th></th>
      <th></th>
    </tr>
  </tfoot>
  <tbody>
    <?php
      while($re=  mysql_fetch_array($listado)){
        echo '<tr>';
        echo '<td>'.mb_convert_encoding($re['id'], "UTF-8").'</td>';
        echo '<td>'.mb_convert_encoding($re['fecha_solicitud'], "UTF-8").'</td>';
        echo '<td>'.mb_convert_encoding($re['fecha_clase'], "UTF-8").'</td>';
        echo '<td>'.mb_convert_encoding($re['duracion'], "UTF-8").'</td>';
        echo '<td>'.mb_convert_encoding($re['numero_alumnos'], "UTF-8").'</td>';
        echo "<td>$re[materia]</td>";
        echo "<td >$re[nombre_uno_tutor]</td>";
        echo '<td>'.mb_convert_encoding($re['estado_solic'], "UTF-8").'</td>';
        echo '<td>'.mb_convert_encoding($re['pago'], "UTF-8").'</td>';
        echo '<td>'.mb_convert_encoding($re['valor_de_clase'], "UTF-8").'</td>';
        echo "<td><a href=botoncancelar.php?id=$re[id]&accion=b>Cancelar</a></td>";
        echo '</tr>';
                     
      }
    ?>
    
  <tbody>
</table>
</table>